package com.douqu.game.core.entity;

/**
 * Created by bean on 2017/9/1.
 */
public class Buff extends GameObject {

    /**
     * 类型
     * 1。伤害
     * 2。加血
     * 3。增加属性
     * 4。冰冻
     * 5。无敌
     * 6。眩晕
     */
    public int type;

    /**
     * 总的时间(0表示永久)
     */
    public int totalTime;

    /**
     * 效果次数
     */
    public int effectCount;

    /**
     * 是否可叠加
     */
    public boolean overlap;

    @Override
    public void setVariable(String key, String value)
    {
        if("overlap".equals(key))
        {
            this.overlap = value.equals("1");
        }
        else
            super.setVariable(key, value);
    }
}
